<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <!-- 引入ajax-->
  <script src="/vendors/jquery/jquery.min.js"></script>


  


</head> 
<body>

<input type="text" id="input"/> <br/>
<button onclick="ajax()" id="btn">提交测试</button>
<span id="result"></span>

<script>
  function ajax() {
    var input = document.getElementById("input").value;
    $.ajax({
      type: "POST",
      url: "/resume/analysis",
      data: {
        "input": input
      },
      success: function (data) {
        document.getElementById("result").innerHTML = data;
      }
    });
  }

</script>

</body>
</html>